#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int n = 0;

	while (scanf("%d", &n) != EOF)
	{
			int flage = 0;
			int ret = 0;
			int sum = 0;
		int arr[1000] = { 0 };
		for (int i = 0; i < n; i++)
		{
			scanf("%d", &arr[i]);
		}
		for (int i = 0; i < n; i++)
		{
			if (arr[i] < 0)
			{
				flage++;
			}
			if (arr[i] > 0)
			{
				ret++;
				sum += arr[i];
			}
		}
		printf("%d\n", flage);
		if (ret == 0)
		{
			printf("0.0\n");
		}
		else
		{
			printf("%.1f\n", (float)sum / (float)ret);
		}
	}
		return 0;
}